// 定义电脑类
class Computer {
    private String make;
    private String model;
    private String processor;
    private int ram;

    public Computer(String make, String model, String processor, int ram) {
        this.make = make;
        this.model = model;
        this.processor = processor;
        this.ram = ram;
    }

    @Override
    public String toString() {
        return "厂商: " + make + ", 型号: " + model + ", 芯片: " + processor + ", 内存: " + ram + "GB";
    }
}

// 定义学生类
class Student {
    private String name;
    private Computer computer;

    public Student(String name, Computer computer) {
        this.name = name;
        this.computer = computer;
    }

    public void displayComputerConfig() {
        System.out.println("学生姓名: " + name);
        System.out.println("电脑信息:");
        System.out.println(computer);
    }
}

// 主类
public class SchoolComputerLab {
    public static void main(String[] args) {
        // 实例化电脑
        Computer computer1 = new Computer("Dell", "Inspiron", "Intel Core i5", 8);
        Computer computer2 = new Computer("Apple", "MacBook Air", "Apple M1", 16);
        Computer computer3 = new Computer("HP", "Pavilion", "AMD Ryzen 5", 12);
        Computer computer4 = new Computer("Lenovo", "ThinkBook", "Intel Core i7", 16);

        // 实例化学生电脑
        Student student1 = new Student("赵某", computer1);
        Student student2 = new Student("钱某", computer2);
        Student student3 = new Student("孙某", computer3);
        Student student4 = new Student("李某", computer4);

        // 输出每位学生的电脑配置
        student1.displayComputerConfig();
        student2.displayComputerConfig();
        student3.displayComputerConfig();
        student4.displayComputerConfig();
    }
}